CREATE TABLE [dbo].[RequiredAdjustment]
(
[RequirementId] [bigint] NOT NULL IDENTITY(1, 1),
[DrugId] [nvarchar] (20) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
[Quantity] [int] NOT NULL,
[AdjustQuantity] [int] NOT NULL,
[FinalQuantity] [int] NOT NULL,
[Remark] [nvarchar] (250) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RequiredAdjustment] ADD CONSTRAINT [PK_RequiredAdjustment_1] PRIMARY KEY CLUSTERED  ([RequirementId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[RequiredAdjustment] ADD CONSTRAINT [FK_RequiredAdjustment_RequiredAdjustment] FOREIGN KEY ([DrugId]) REFERENCES [dbo].[DrugDispo] ([DrugId])
GO
